-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lgtm] Fix LGTM build on 202012 branch #1921
Conversation
lgtm.yml
Outdated
after_prepare: | ||
- git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd | ||
- git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; git checkout origin/202012; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik suggest to have git clone -b 202012
https://github.com/Azure/sonic-swss-common
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
lgtm.yml
Outdated
- dpkg-deb -x libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- dpkg-deb -x libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- dpkg-deb -x libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- git clone --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; git checkout origin/202012; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik suggest to have git clone -b 202012
--recursive https://github.com/Azure/sonic-sairedis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
lgtm.yml
Outdated
- dpkg-deb -vx libsaimetadata_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- dpkg-deb -vx libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- dpkg-deb -vx libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- dpkg-deb -vx libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik do we need to have dpkg-deb -vx
in master
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i added this for debugging, currently we dont need that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik got it
@kcudnik FYI. The fix is good.
merge commit:
base commit:
Need to add it to |
lgtm.yml
Outdated
- dpkg-deb -x libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- dpkg-deb -x libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE | ||
- git clone -b 202012 --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd | ||
- dpkg-deb -vx libsairedis_1.0.0_amd64.deb $LGTM_WORKSPACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik do we need to remove this debug stuff: dpkg-deb -vx
?
lgtm.yml
Outdated
configure: | ||
command: | ||
- ./autogen.sh | ||
- ls -al $LGTM_WORKSPACE/usr/include/sai || true ; ls -al /usr/include/sai || true | ||
- find / -name sai.h -ls || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik do we need to remove this debug stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
orchagent/main.cpp
Outdated
@@ -33,6 +33,8 @@ extern "C" { | |||
using namespace std; | |||
using namespace swss; | |||
|
|||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcudnik do we need to remove this debug stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
not sure why latests builds dont pull lgtm.yml changes |
@lguohan can you please help to merge? |
Is it true that the failing LGTM log indicates it is not using 202012 branch? There is no |
there is no specific clone for sonic-swss in lgtm.yml |
ping, c++ should start passing after it will this commit will be merged |
… field in Bearer fields (sonic-net#1921) Signed-off-by: Stepan Blyschak [email protected] What I did If Auth service did not reply with "service" field, don't fail and request the token without it. How I did it Modified registry.py and added UT. How to verify it Tested on DUT.
What I did
Why I did it
How I verified it
Details if related